package Renaming;
public class Account {
    
   private String userName= null; 			  // User name.
   private Integer accountID=null;			  // Account ID.
	//TODO rename x to a meaningful world
   private Integer balance = null;			  //Account Balance
    
   public Account(){}
	
   public Account(Integer accountID, Integer balance)
   {
    	this.userName = "USER" + accountID.toString();
    	this.accountID = accountID;
		this.balance = balance;
   } 
    
   public Integer getBalance()	
   {
	return balance;
   }

   public void setBalance(Integer balance)
   {
	this.balance=balance;
   }
    
   public String getUserName()	
   {
	return userName;
   }

   public void setUserName(String userName)
   {
	this.userName=userName;
   }
    
  // @SpaceId		//	Sets this field (accountID) to be used in the construction 
           		//	of the Account object's unique space ID (UID).
  // @SpaceRouting	//	Sets this field (accountID) as the routing index for partitioning.
   public Integer getAccountID()	
   {
	return accountID;
   }

   public void setAccountID(Integer accountID)
   {
	this.accountID=accountID;
   }
        
   public String toString()
   {
	return "User Name "+userName+", AccountID "+accountID+", Balance "+balance;
   }
}